# 单个目录实现
# CMake 最低版本号要求
cmake_minimum_required (VERSION 2.8)
# 工程
# PROJECT(KVSTORE)

include_directories("${PROJECT_SOURCE_DIR}/head")

# 手动加入文件
aux_source_directory(. SRC_LIST)

ADD_EXECUTABLE(output ${SRC_LIST} )
# 为目标添加编译选项
target_compile_options(output PRIVATE -mcmodel=medium)
target_compile_options(output PRIVATE -g)
# 输出可执行文件到指定的文件夹
set_target_properties(output PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${PROJECT_SOURCE_DIR}/bin")